#ifndef __SOCKLIB_H
#define __SOCKLIB_H

#ifdef __cplusplus
extern "C" {
#endif

int make_server_socket(int portnum);
int connect_to_server(const char *host,int portnum);
int sendMsg(int sockfd,const char *buf, int ms);
int recvMsg(int sockfd,char *buf,int max_len, int ms);
#ifdef __cplusplus
}
#endif

#endif // #ifndef __SOCKLIB_H
